package com.ymatou.iapi.idcardmng.service;

import org.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*上传身份证原图接口Call
*FreeMaker Template自动生成代码
*/
public class UploadIdCardCall extends YmatouBaseCall {
	private static String opurl = "manage/uploadIdCardPic";

	public UploadIdCardCall() {
		super(EnvSetup.getSystemUrl("idcardmng"), opurl, "FILE", "PARAM");
	}
	// 上传文件不能加默认头信息
	@Override
	public void addDefHeader() {
	}

	/**
	 * getData
	 * 
	 * @return
	 */
	public JSONObject getData() {
		JSONObject Data = null;
		try {
			Data = new JSONObject(getReturnData()).getJSONObject("Data");
		} catch (Exception e) {
			e.printStackTrace();
		}
		return Data;
	}

}
